﻿<UserControl
    x:Class="c2iGMailNotifier.View.ToolbarView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
    xmlns:c2iGMailNotifier="clr-namespace:c2iGMailNotifier" 
    DataContext="{Binding Source={x:Static c2iGMailNotifier:Locator.ToolbarViewModelStatic}}"
    mc:Ignorable="d" 
    d:DesignWidth="340"
    >
    <Border Grid.Row="0" BorderThickness="1,0,1,1" Padding="5,2" BorderBrush="{DynamicResource BorderBrush}" Background="{DynamicResource MainBackgroundBrush}">
        <DockPanel>
            <StackPanel Orientation="Horizontal">
                <Button VerticalAlignment="Center" Click="btnRefresh_Click" Style="{DynamicResource toolbarButtonStyle}" >
                    <Image  Width="32" Source="/c2iGMailNotifier;Component/Images/RefreshBlue48.png"/>
                </Button>

                <Button Click="btnGoToGmail_Click" VerticalAlignment="Center" Style="{DynamicResource toolbarButtonStyle}" >
                    <Image  Width="32" Source="/c2iGMailNotifier;Component/Images/GoToGMail48.png"/>
                </Button>
                
                <Button VerticalAlignment="Center" Click="btnOptions_Click" Style="{DynamicResource toolbarButtonStyle}" Margin="10,0,0,0">
                    <Image  Width="32" Source="/c2iGMailNotifier;Component/Images/Parameters48.png"/>
                </Button>
            </StackPanel>
            <TextBlock Text="{Binding LastUpdateDate, StringFormat=HH:mm:ss}" FontSize="10" VerticalAlignment="Center" Margin="0,0,5,0" Foreground="White" DockPanel.Dock="Right" HorizontalAlignment="Right"/>
        </DockPanel>


    </Border>
</UserControl>
